package com.key.win.business.chat.model;

import com.baomidou.mybatisplus.annotation.TableName;
import com.key.win.base.model.MybatisID;
import com.key.win.business.chat.eums.ImMessageTargetEnum;
import com.key.win.business.chat.eums.ImMessageTypeEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

@ApiModel("消息实体详情")
@Data
@TableName("im_message_detail")
@EqualsAndHashCode(callSuper = true)
public class ImMessageDetail extends MybatisID {
    @ApiModelProperty("目标ID")
    private String targetId;
    @ApiModelProperty("发送人")
    private String fromUserId;
    @ApiModelProperty("接收人")
    private String toUserId;
    @ApiModelProperty("目标[好友、群、系统，好友/群申请]")
    private ImMessageTargetEnum target;
    @ApiModelProperty("消息状态:[true:已读,false:未读]")
    private Boolean status;
    @ApiModelProperty("desc")
    private String desc;
    @ApiModelProperty("消息类型:[好友消息、管理员消息]、[系统消息、好友申请消息、...]、[群消息、@消息、管理员消息]")
    private ImMessageTypeEnum type;
    @ApiModelProperty("messageId")
    private String messageId;
}
